/**
 * 
 * 功能说明:系统模块服务
 * 
 * @author ZHONGFUHUA
 * 
 * @Date 2016年10月25日
 * 
 */
 var sysServiceApp=angular.module("sysServiceApp", ["commonApp"]);
 
 sysServiceApp.service('sysService', ['commonService',function(commonService){
	 
	 //查询当前用户
	 this.queryCurrentUser=function(sback,eback){
		 commonService.call("sys/sysService/queryCurrentUser",null,sback,eback);
	 };
	 
	 //更新当前用户
	 this.updateCurrentUser=function(params,sback,eback){
		 commonService.call("sys/sysService/updateCurrentUser",params,sback,eback);
	 };
	 
	 //
	 this.changePwd=function(params,sback,eback){
		 commonService.call("sys/sysService/changePwd",params,sback,eback);
	 };
	 
	 //查询目录树
	 this.queryOrgTree=function(params,sback,eback){
	 	 commonService.call("sys/sysService/queryOrgTree",params,sback,eback);
	 }
	 
	 // 根据id查询目录
	 this.getOrgById = function(params, sback, eback) {
	     commonService.call("sys/sysService/getOrgById", params, sback, eback);
	 }
	 
	 //添加目录节点
	 this.saveOrg = function(params, sback, eback){
		 commonService.call("sys/sysService/saveOrg",params,sback,eback);
	 }
	 
	 //查询员工表
	 this.queryUserDataByMap=function(params,sback,eback){
		 commonService.call("sys/sysService/queryUserDataByMap",params,sback,eback);
	 }
	 
	 //添加员工
	 this.saveUser=function(params,sback,eback){
		 commonService.call("sys/sysService/saveUser",params,sback,eback);
	 }
	 
	 //修改员工
	 this.updateUser=function(params,sback,eback){
		 commonService.call("sys/sysService/updateUser",params,sback,eback);
	 }
	 
	 //删除员工
	 this.deleteUsers=function(params,sback,eback){
		 commonService.call("sys/sysService/deleteUsers",params,sback,eback);
	 }
	 
	 //删除部门
	 this.deleteOrg=function(params,sback,eback){
		 commonService.call("sys/sysService/deleteOrg",params,sback,eback);
	 }
	 
	 //查询权限目录树
	 this.queryPrivTree=function(params,sback,eback){
		 commonService.call("sys/sysService/queryPrivTree",params,sback,eback);
	 }
	 
	 //添加权限目录树节点
	 this.savePrivCatalog=function(params, sback, eback){
		 commonService.call("sys/sysService/savePrivCatalog",params,sback,eback);
	 }
	 
	 //查询权限信息
	 this.queryPrivDataByMap=function(params,sback,eback){
		 commonService.call("sys/sysService/queryPrivDataByMap",params,sback,eback);
	 }
	 
	 //添加权限
	 this.savePrivilege=function(params,sback,eback){
		 commonService.call("sys/sysService/savePrivilege",params,sback,eback);
	 }
	 
	 //修改权限
	 this.updatePrivilege=function(params,sback,eback){
		 commonService.call("sys/sysService/updatePrivilege",params,sback,eback);
	 }
	 
	 //删除权限
	 this.deletePrivileges=function(params,sback,eback){
		 commonService.call("sys/sysService/deletePrivileges",params,sback,eback);
	 }
	 
	 //删除权限目录树节点
	 this.deletePrivCatalog=function(params,sback,eback){
		 commonService.call("sys/sysService/deletePrivCatalog",params,sback,eback);
	 }
	 
	 //查询角色树
	 this.queryRoleTree=function(params,sback,eback){
		 commonService.call("sys/sysService/queryRoleTree",params,sback,eback);
	 }
	 
	 //查询角色管理中的部门组织树
	 this.queryOrgRoleTree=function(params,sback,eback){
	 	 commonService.call("sys/sysService/queryOrgRoleTree",params,sback,eback);
	 }
	 
	 //查询角色管理中的权限目录树
	 this.queryrolePrivCatalogTree=function(params,sback,eback){
	 	 commonService.call("sys/sysService/queryrolePrivCatalogTree",params,sback,eback);
	 }
	 
	 //添加角色
	 this.addRole=function(params,sback,eback){
	 	 commonService.call("sys/sysService/addRole",params,sback,eback);
	 }
	 
	 //删除角色
	 this.deleteRole=function(params,sback,eback){
	 	 commonService.call("sys/sysService/deleteRole",params,sback,eback);
	 }
	 
	 //根据角色查员工
	 this.queryUserDataByRoleId=function(params,sback,eback){
	 	 commonService.call("sys/sysService/queryUserDataByRoleId",params,sback,eback);
	 }
	 
	 //根据角色查权限
	 this.queryPrivilegeDataByRoleId=function(params,sback,eback){
	 	 commonService.call("sys/sysService/queryPrivilegeDataByRoleId",params,sback,eback);
	 }
	 
	 //根据角色删除用户
	 this.deleteUserByRoldId=function(params,sback,eback){
	 	 commonService.call("sys/sysService/deleteUserByRoldId",params,sback,eback);
	 }
	 
	 //根据角色删除权限
	 this.deletePrivilegeByRoldId=function(params,sback,eback){
	 	 commonService.call("sys/sysService/deletePrivilegeByRoldId",params,sback,eback);
	 }
	 
	 //查询目录数据
	 this.queryMenuData=function(params,sback,eback){
	 	 commonService.call("sys/sysService/queryMenuData",params,sback,eback);
	 }
	 
	 //查询模态框中的目录数据
	 this.queryInnerMenuData=function(params,sback,eback){
	 	 commonService.call("sys/sysService/queryInnerMenuData",params,sback,eback);
	 }
	 
	 //添加目录数据
	 this.saveMenu=function(params,sback,eback){
	 	 commonService.call("sys/sysService/saveMenu",params,sback,eback);
	 }
	 
	 //修改目录数据
	 this.updateMenu=function(params,sback,eback){
	 	 commonService.call("sys/sysService/updateMenu",params,sback,eback);
	 }
	 
	 //删除目录数据
	 this.deleteMenus=function(params,sback,eback){
	 	 commonService.call("sys/sysService/deleteMenus",params,sback,eback);
	 }
 
 }]);